package com.axend.aerosense.common.config;

import com.axend.aerosense.base.app.AppConfig;

/**
 *  此处存放MMKV 关键字 key, 以及事件key
 */
public class Gobal {
    public static class SAVE_KEY{
        public final static String USR_INFO = "USR_INFO";
        public final static String TOKEN = AppConfig.TOKEN;
        /**
         * 最后登录的手机号
         */
        public final static String LOGIN_EMAIL = "LOGIN_EMAIL";

        /** 雷达ID */
        public final static String RADAR_ID = "RADAR_ID";

        /** 雷达名 */
        public final static String RADAR_NAME = "RADAR_NAME";

        /** 雷达版本号 */
        public final static String RADAR_VERSION = "RADAR_VERSION";

        /**
         * 头像
         */
        public final static String IMAGE_ICON = "IMAGE_ICON";
        public final static String IMAGE_ICON_SIGN = "IMAGE_ICON_SIGN";

        /** 升级Bin文件MD5 */
        public final static String BIN_FILE_MD5 = "BIN_FILE_MD5";

        /** 固件版本号 */
        public final static String FIRMWARE_VERSION_NUM = "FIRMWARE_VERSION_NUM";
        /**
         * 最近一次版本更新接口返回,在非强制时跳过的服务器客户端版本
         */
        public final static String LAST_JUMP_VERSION = "LAST_JUMP_VERSION";

        /**
         * 通知弹出弹出的日期
         */
        public final static String NOTICE = "NOTICE";

        /**
         * 雷达设备连接的服务器IP和地址
         */
        public final static String RADAR_TCP_SERVICE_ADDRESS = "RADAR_TCP_SERVICE_ADDRESS";

        /**
         * 调试模式下，自定义App请求的服务器IP与端口
         */
        public static final String DEBUG_SERVER_INFO_SAVE_KEY = "DEBUG_SERVER_INFO_SAVE_KEY";
    }

    public static class CLASS_KEY{
        public final static String OBJECT_UID_KEY = "uid";
        public final static String OPEN_TYPE_KEY = "openType";
        public final static String SELECT_MODE_KEY = "selectMode";
    }


    public static class EVENT_KEY{
        // 用户信息变更
        public final static String USR_INFO_CHANGE = "USR_INFO";
        // 登录设备历史信息变更
        public final static String LOGIN_DEV_CHANGE = "LOGIN_DEV";
        // 雷达设备变更
        public final static String DEV_COUNT_CHANGE = "DEV_COUNT";
        // 雷达信息变更
        public final static String WARD_COUNT_CHANGE = "WARD_COUNT";
        // 紧急联系人变更
        public final static String PERSON_COUNT_CHANGE = "PERSON_COUNT";
        // 头像变更
        public final static String IMAGE_ICON_CHANGE = "IMAGE_ICON";
        // 事件变更
        public final static String REPORT_EVENT_CHANGE = "REVENT_CHANGE";
        // 报警事件变更
        public final static String WARN_EVENT_CHANGE = "WEVENT_CHANGE";
        // VIP 状态变更
        public final static String VIP_CHANGE = "VIP_CHANGE";
        // 用户名称变更
        public final static String USR_NAME_CHANGE = "USR_NAME";
        // 用户邮箱变更
        public final static String USR_EMAIL_CHANGE = "EMAIL_CHANGE";
        // 重新刷新首页
        public final static String REFESH_HOME = "REFESH_HOME";
        // 重新刷新房间
        public final static String REFESH_ROOM = "REFESH_ROOM";
        // 重新刷新房间详情页
        public final static String REFESH_ROOM_DETAIL = "REFESH_DETAI";
        // 设备连接中断
        public static final String CONNECT_BROKEN = "CONNECT_BROKEN";
    }


    public static class ERROR_CODE{
        public final static int ERR_COMMON = -1;
        public final static int ERR_LOGIN = 0;
        public final static int ERR_DELETE = 101;
    }

    public static class STATUS_CODE{
        public final static int READED = 1;
        public final static int UNREAD = 0;
    }

    public static class EarlyWarningTipType{
        public final static int REMIND = 1;
        public final static int WARNING = 2;
    }

    public static class IntentParamType{
        /**
         * 警告
         */
        public static final String WARN_OBJECT = "WARN_OBJECT";
        /**
         * 预警
         */
        public static final String EARLY_OBJECT = "EARLY_OBJECT";
        /**
         *  是VIP
         */
        public static final int VIP = 1;
        /**
         *  过期VIP
         */
        public static final int EX_VIP = 2;
    }

}
